home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / island_fishing.swf / scripts / frame_223 / PlaceObject2_161_51 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-01-13  |  4KB  |  116 lines

  1. onClipEvent(enterFrame){
  2.    if(this.canmove <= 0)
  3.    {
  4.       this._x = _root.hook._x;
  5.       this._y = _root.hook._y;
  6.    }
  7.    if(_root.turtle2esc >= 1)
  8.    {
  9.       this.play();
  10.       this.hooked = 0;
  11.       _root.guy.gotoAndStop(1);
  12.    }
  13.    if(this.hitTest(_root.rodend))
  14.    {
  15.       unloadMovie(this);
  16.       _root.guy.head.gotoAndPlay("yar");
  17.       _root.fish = _root.fish + 1;
  18.       _root.scorepopup.score.text = "15";
  19.       _root.scorepopup.play();
  20.       _root.score = _root.score + 1;
  21.       _root.score = _root.score + 1;
  22.       _root.score = _root.score + 1;
  23.       _root.score = _root.score + 1;
  24.       _root.score = _root.score + 1;
  25.       _root.score = _root.score + 1;
  26.       _root.score = _root.score + 1;
  27.       _root.score = _root.score + 1;
  28.       _root.score = _root.score + 1;
  29.       _root.score = _root.score + 1;
  30.       _root.score = _root.score + 1;
  31.       _root.score = _root.score + 1;
  32.       _root.score = _root.score + 1;
  33.       _root.score = _root.score + 1;
  34.       _root.score = _root.score + 1;
  35.       _root.hunger = _root.hunger + 1;
  36.       _root.hunger = _root.hunger + 1;
  37.       _root.hunger = _root.hunger + 1;
  38.       _root.hunger = _root.hunger + 1;
  39.       _root.hunger = _root.hunger + 1;
  40.       _root.hunger = _root.hunger + 1;
  41.       _root.hunger = _root.hunger + 1;
  42.       _root.hunger = _root.hunger + 1;
  43.       _root.hunger = _root.hunger + 1;
  44.       _root.hunger = _root.hunger + 1;
  45.       _root.hunger = _root.hunger + 1;
  46.       _root.hunger = _root.hunger + 1;
  47.       _root.hunger = _root.hunger + 1;
  48.       _root.hunger = _root.hunger + 1;
  49.       _root.hunger = _root.hunger + 1;
  50.       _root.hunger = _root.hunger + 1;
  51.       _root.hunger = _root.hunger + 1;
  52.       _root.hunger = _root.hunger + 1;
  53.       _root.hunger = _root.hunger + 1;
  54.       _root.hunger = _root.hunger + 1;
  55.    }
  56.    if(this.hitTest(_root.hook))
  57.    {
  58.       if(_root.f1.hooked <= 0)
  59.       {
  60.          if(_root.f2.hooked <= 0)
  61.          {
  62.             if(_root.f3.hooked <= 0)
  63.             {
  64.                if(_root.f4.hooked <= 0)
  65.                {
  66.                   if(_root.f4.hooked <= 0)
  67.                   {
  68.                      if(_root.f5.hooked <= 0)
  69.                      {
  70.                         if(_root.f6.hooked <= 0)
  71.                         {
  72.                            if(_root.f7.hooked <= 0)
  73.                            {
  74.                               if(_root.f8.hooked <= 0)
  75.                               {
  76.                                  if(_root.f9.hooked <= 0)
  77.                                  {
  78.                                     if(this.flashing <= 0)
  79.                                     {
  80.                                        _root.guy.gotoAndStop(2);
  81.                                        if(_root.hook._x < 520)
  82.                                        {
  83.                                           _root.hook._x += 0.5;
  84.                                        }
  85.                                        if(_root.hook._y < 380)
  86.                                        {
  87.                                           _root.hook._y += 0.5;
  88.                                        }
  89.                                        _root.turtle2timer.play();
  90.                                        this.hooked = 1;
  91.                                        this.canmove = 0;
  92.                                        this._x = _root.hook._x;
  93.                                        this._y = _root.hook._y;
  94.                                     }
  95.                                     else
  96.                                     {
  97.                                        this.canmove = 1;
  98.                                        this.hooked = 0;
  99.                                        if(this._y < 160)
  100.                                        {
  101.                                           this._y = 180;
  102.                                        }
  103.                                     }
  104.                                  }
  105.                               }
  106.                            }
  107.                         }
  108.                      }
  109.                   }
  110.                }
  111.             }
  112.          }
  113.       }
  114.    }
  115. }
  116.